package com.test.concurrent;

import java.nio.ByteBuffer;

/**
 * @author: zhangzeli
 * @date 20:06 2018/4/26
 * <P></P>
 */
public class T {
    T(){
        System.out.println("够着方法");
    }
    static {
        System.out.println("静态代码块");
    }
    {
        System.out.println("非静态代码块");
    }

    public static  void  a (){
        System.out.println("aa");
    }

    public static void main(String[] args) {
//        System.out.println("main");
        aa();
//        int [] arr = {1,2,3,4};
//        System.out.println(arr[1]);
//        String intern = "aac".intern();
//
//        System.out.println(intern);
//        String c ="lo";
//
//         String s1 = "Hello";
//        String s2 = "Hel"+c;
//        System.out.println(s1==s2);
    }

    public static void aa(){
        ByteBuffer bf = ByteBuffer.allocateDirect(1);
        byte []  b =new byte[2];
        bf.put(b);

    }
}
